<template>
  <router-view v-if='show' />
</template>

<script lang="ts">
import { defineComponent, nextTick, provide, ref } from 'vue'

export default defineComponent({
  name: 'App',
  setup () {
    const show = ref(true)
    function refresh () {
      show.value = false
      nextTick(() => {
        show.value = true
      })
    }
    provide('refresh', refresh)
    return { show }
  },
})
</script>

<style>

</style>
